package BLL;

import DAL.BranchDAL;
import Entities.TblBranch;
import java.util.List;

public class BranchBLL {

    protected BranchDAL dalObj;

    public boolean add(TblBranch obj) throws Exception {
        dalObj = new BranchDAL();
        return dalObj.add(obj);
    }

    public  boolean update(TblBranch obj) throws Exception {
        dalObj = new BranchDAL();
        return dalObj.update(obj);
    }

    public  boolean delete(TblBranch obj) throws Exception {
        dalObj = new BranchDAL();
        return dalObj.delete(obj);
    }

    public  TblBranch getById(int id){
        dalObj = new BranchDAL();
        return dalObj.getById(id);
    }

    public  List<TblBranch> getAll(){
        dalObj = new BranchDAL();
        return dalObj.getAll();
    }
}